﻿using System.ComponentModel;

namespace QDT.Payment.AllInPay.Api
{
    /// <summary>
    /// 帐户类型
    /// </summary>
    public enum AccountType
    {
        /// <summary>
        /// 默认帐户类型，等于Card
        /// </summary>
        Default,
        /// <summary>
        /// 银行卡
        /// </summary>
        [Description("00")]
        Card,
        /// <summary>
        /// 存折
        /// </summary>
        [Description("01")]
        BankBook
    }

    /// <summary>
    /// 帐户属性
    /// </summary>
    public enum AccountProp
    {
        /// <summary>
        /// 默认帐户属性，等于Personal
        /// </summary>
        [Description("0")]
        Default,
        /// <summary>
        /// 个人帐户
        /// </summary>
        [Description("0")]
        Personal,
        /// <summary>
        /// 企业帐户
        /// </summary>
        [Description("1")]
        Enterprise
    }

    /// <summary>
    /// 币种类型
    /// </summary>
    public enum Currency
    {
        /// <summary>
        /// 默认币种，等于CNY
        /// </summary>
        Default,
        /// <summary>
        /// 人民币
        /// </summary>
        CNY,
        /// <summary>
        /// 港币
        /// </summary>
        HKD,
        /// <summary>
        /// 美元
        /// </summary>
        USD
    }

    /// <summary>
    /// pin格式
    /// </summary>
    public enum PinMt
    {
        /// <summary>
        /// 不带主账号信息
        /// </summary>
        NOMAINACCT = 1,
        /// <summary>
        /// 带主账号信息
        /// </summary>
        HASMAINACCT = 2,
        /// <summary>
        ///密码直接加密
        /// </summary>
        ECRYPTPWD = 3
    }

    /// <summary>
    /// 证件类型
    /// </summary>
    public enum IDType
    {
        /// <summary>
        /// 默认证件类型
        /// </summary>
        Default,
        /// <summary>
        /// 身份证
        /// </summary>
        [Description("0")]
        IDCard,
        /// <summary>
        /// 户口本
        /// </summary>
        [Description("1")]
        ResidenceCertificate,
        /// <summary>
        /// 护照
        /// </summary>
        [Description("护照")]
        Passport,
        /// <summary>
        /// 军官证
        /// </summary>
        [Description("3")]
        OfficerPass,
        /// <summary>
        /// 士兵证
        /// </summary>
        [Description("4")]
        SoldiersCard,
        /// <summary>
        /// 港澳居民来往内地通行证
        /// </summary>
        [Description("5")]
        HMVisitorPass,
        /// <summary>
        /// 台湾同胞来往内地通行证
        /// </summary>
        [Description("6")]
        TVisitorPass,
        /// <summary>
        /// 临时身份证
        /// </summary>
        [Description("7")]
        TempIDCard,
        /// <summary>
        /// 外国人居留证
        /// </summary>
        [Description("8")]
        ForeignerPass,
        /// <summary>
        /// 警官证
        /// </summary>
        [Description("9")]
        PolicePass,
        /// <summary>
        /// 其他证件
        /// </summary>
        [Description("X")]
        Other
    }

    /// <summary>
    /// AIPG操作错误枚举
    /// </summary>
    public enum AipgError
    {
        /// <summary>
        /// 没有错误
        /// </summary>
        NoError,
        /// <summary>
        /// 生成报文签名错误
        /// </summary>
        SignError,
        /// <summary>
        /// 连接远程服务器错误
        /// </summary>
        ConnectError,
        /// <summary>
        /// 获取服务器响应错误
        /// </summary>
        ResponseError,
        /// <summary>
        /// 验证响应报文签名错误
        /// </summary>
        VerifyError,
        /// <summary>
        /// 解释响应报文错误
        /// </summary>
        ParseError
    }
}
